package com.jt.demo2.service;

import com.jt.demo2.aop.TX;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @TX
    @Override
    public void hello() {
        System.out.println("新增用户成功");
        //System.out.println(1/0);   //试错方法
    }

    @TX
    @Override
    public String findName() {
        return "春节愉快！！！";
    }

}
